import request from '@/utils/request'

// 查询监控空间列表
export function listCameraGroup(query) {
  return request({
    url: '/system/cameraGroup/list',
    method: 'get',
    params: query
  })
}

// 查询监控空间详细
export function getCameraGroup(id) {
  return request({
    url: '/system/cameraGroup/' + id,
    method: 'get'
  })
}

// 新增监控空间
export function addCameraGroup(data) {
  return request({
    url: '/system/cameraGroup',
    method: 'post',
    data: data
  })
}

// 修改监控空间
export function updateCameraGroup(data) {
  return request({
    url: '/system/cameraGroup',
    method: 'put',
    data: data
  })
}

// 删除监控空间
export function delCameraGroup(id) {
  return request({
    url: '/system/cameraGroup/' + id,
    method: 'delete'
  })
}

// 导出监控空间
export function exportCameraGroup(query) {
  return request({
    url: '/system/cameraGroup/export',
    method: 'get',
    params: query
  })
}